package com.reguang.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.reguang.mapper.GeneratorMapper;
import com.reguang.service.GeneratorService;

@Service
public class GeneratorServiceImpl implements GeneratorService {

	@Autowired
	private GeneratorMapper generatorMapper;

	@Override
	public List<Map<String, Object>> getAllTables() {
		return generatorMapper.getAllTables();
	}

	@Override
	public Map<String, String> getTableInfo(String tableName) {
		return generatorMapper.getTableInfo(tableName);
	}

	@Override
	public List<Map<String, String>> getTableColumnsInfo(String tableName) {
		return generatorMapper.getTableColumnsInfo(tableName);
	}

}
